package com.itlong.cloud.commons.resource;

import com.itlong.cloud.POJO.PO.AppRobotOperateLogPO;
import com.itlong.cloud.commons.service.IRobotLoginLogService;
import com.itlong.cloud.noncore.commons.IRobotLoginLogServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      机器人登录日志暴露接口实现类
 * </desc>
 *
 * @createDate 2018/10/15
 */
@RestController
public class RobotLoginLogServiceResource implements IRobotLoginLogServiceClient {

    @Autowired
    private IRobotLoginLogService iRobotLoginLogService;

    /**
     * <desc>
     *      保存机器人登录日志信息
     * </desc>
     *
     * @param appRobotOperateLogPO 登陆日志实体对象
     * @return 受影响行数
     * @author wangzhi
     * @createDate 2018/10/15
     */
    @Override
    @RequestMapping(path = "/sys/logManage/robotLoginLog/save")
    public Integer save(@RequestBody AppRobotOperateLogPO appRobotOperateLogPO) throws Exception {
        return iRobotLoginLogService.save(appRobotOperateLogPO);
    }
}
